package com.itheima.mp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.mp.domain.po.User;
import com.itheima.mp.domain.vo.UserVO;

import java.util.List;

public interface IUserService extends IService<User> {
    /**
     *  扣减余额,
     * @param id
     * @param amount
     */
    void deductBalanceById(Long id, Integer amount);

    /**
     *  根据id查询用户信息
     * @param id
     * @return
     */
    UserVO queryUserAddressById(Long id);

    List<UserVO> queryUserAndAddressByIds(List<Long> ids);
}
